package com.cqq.print.business.dao.impl;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.cqq.print.business.dao.domain.PAccountDetail;
import com.cqq.print.business.dao.mapper.PAccountDetailMapper;


/**
 * @author generated
 * @date 2015-07-01
 */


@Repository(value="pAccountDetailDao")
public class PAccountDetailDaoImpl extends com.cqq.common.core.base.BaseDao implements com.cqq.print.business.dao.PAccountDetailDao{

             @Autowired
             private PAccountDetailMapper pAccountDetailMapper;

    public int deleteByPrimaryKey(Integer id){
        return pAccountDetailMapper.deleteByPrimaryKey(id);
    }

    public int insertSelective(PAccountDetail record){
        return pAccountDetailMapper.insertSelective(record);
    }

    public PAccountDetail selectByPrimaryKey(Integer id){
        return pAccountDetailMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(PAccountDetail record){
        return pAccountDetailMapper.updateByPrimaryKeySelective(record);
    }

	public List<PAccountDetail> findDetailsByAccountId(Integer accountId) {
		return pAccountDetailMapper.findDetailsByAccountId(accountId);
	}



}